

import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.GradientPaint;
import java.text.SimpleDateFormat;
import javax.swing.JPanel;
import org.jfree.chart.ChartFactory;
import org.jfree.chart.ChartPanel;
import org.jfree.chart.ChartUtilities;
import org.jfree.chart.JFreeChart;
import org.jfree.chart.axis.DateAxis;
import org.jfree.chart.axis.DateTickMarkPosition;
import org.jfree.chart.labels.StandardXYToolTipGenerator;
import org.jfree.chart.plot.IntervalMarker;
import org.jfree.chart.plot.XYPlot;
import org.jfree.chart.renderer.xy.XYDifferenceRenderer;
import org.jfree.chart.title.TextTitle;
import org.jfree.data.time.Day;
import org.jfree.data.time.Minute;
import org.jfree.data.time.TimeSeries;
import org.jfree.data.time.TimeSeriesCollection;
import org.jfree.data.xy.XYDataset;
import org.jfree.ui.ApplicationFrame;
import org.jfree.ui.GradientPaintTransformType;
import org.jfree.ui.Layer;
import org.jfree.ui.RectangleAnchor;
import org.jfree.ui.RefineryUtilities;
import org.jfree.ui.StandardGradientPaintTransformer;
import org.jfree.ui.TextAnchor;

public class DifferenceChartDemo2 extends ApplicationFrame
{
  public DifferenceChartDemo2(String paramString)
  {
    super(paramString);
    JPanel localJPanel = createDemoPanel();
    localJPanel.setPreferredSize(new Dimension(500, 270));
    setContentPane(localJPanel);
  }

  private static XYDataset createDataset()
  {
    TimeSeries localTimeSeries1 = createSunriseSeries();
    TimeSeries localTimeSeries2 = createSunsetSeries();
    TimeSeriesCollection localTimeSeriesCollection = new TimeSeriesCollection();
    localTimeSeriesCollection.addSeries(localTimeSeries1);
    localTimeSeriesCollection.addSeries(localTimeSeries2);
    return localTimeSeriesCollection;
  }

  private static Long time(int paramInt1, int paramInt2)
  {
    Minute localMinute = new Minute(paramInt2, paramInt1, 1, 1, 1970);
    return new Long(localMinute.getFirstMillisecond());
  }

  public static TimeSeries createSunriseSeries()
  {
    TimeSeries localTimeSeries = new TimeSeries("Sunrise");
    localTimeSeries.add(new Day(1, 1, 2004), time(8, 5));
    localTimeSeries.add(new Day(2, 1, 2004), time(8, 5));
    localTimeSeries.add(new Day(3, 1, 2004), time(8, 5));
    localTimeSeries.add(new Day(4, 1, 2004), time(8, 5));
    localTimeSeries.add(new Day(5, 1, 2004), time(8, 5));
    localTimeSeries.add(new Day(6, 1, 2004), time(8, 4));
    localTimeSeries.add(new Day(7, 1, 2004), time(8, 4));
    localTimeSeries.add(new Day(8, 1, 2004), time(8, 4));
    localTimeSeries.add(new Day(9, 1, 2004), time(8, 3));
    localTimeSeries.add(new Day(10, 1, 2004), time(8, 3));
    localTimeSeries.add(new Day(11, 1, 2004), time(8, 2));
    localTimeSeries.add(new Day(12, 1, 2004), time(8, 1));
    localTimeSeries.add(new Day(13, 1, 2004), time(8, 1));
    localTimeSeries.add(new Day(14, 1, 2004), time(8, 0));
    localTimeSeries.add(new Day(15, 1, 2004), time(7, 59));
    localTimeSeries.add(new Day(16, 1, 2004), time(7, 58));
    localTimeSeries.add(new Day(17, 1, 2004), time(7, 58));
    localTimeSeries.add(new Day(18, 1, 2004), time(7, 57));
    localTimeSeries.add(new Day(19, 1, 2004), time(7, 56));
    localTimeSeries.add(new Day(20, 1, 2004), time(7, 55));
    localTimeSeries.add(new Day(21, 1, 2004), time(7, 54));
    localTimeSeries.add(new Day(22, 1, 2004), time(7, 53));
    localTimeSeries.add(new Day(23, 1, 2004), time(7, 51));
    localTimeSeries.add(new Day(24, 1, 2004), time(7, 50));
    localTimeSeries.add(new Day(25, 1, 2004), time(7, 49));
    localTimeSeries.add(new Day(26, 1, 2004), time(7, 48));
    localTimeSeries.add(new Day(27, 1, 2004), time(7, 46));
    localTimeSeries.add(new Day(28, 1, 2004), time(7, 45));
    localTimeSeries.add(new Day(29, 1, 2004), time(7, 44));
    localTimeSeries.add(new Day(30, 1, 2004), time(7, 42));
    localTimeSeries.add(new Day(31, 1, 2004), time(7, 41));
    localTimeSeries.add(new Day(1, 2, 2004), time(7, 39));
    localTimeSeries.add(new Day(2, 2, 2004), time(7, 38));
    localTimeSeries.add(new Day(3, 2, 2004), time(7, 36));
    localTimeSeries.add(new Day(4, 2, 2004), time(7, 35));
    localTimeSeries.add(new Day(5, 2, 2004), time(7, 33));
    localTimeSeries.add(new Day(6, 2, 2004), time(7, 31));
    localTimeSeries.add(new Day(7, 2, 2004), time(7, 30));
    localTimeSeries.add(new Day(8, 2, 2004), time(7, 28));
    localTimeSeries.add(new Day(9, 2, 2004), time(7, 26));
    localTimeSeries.add(new Day(10, 2, 2004), time(7, 25));
    localTimeSeries.add(new Day(11, 2, 2004), time(7, 23));
    localTimeSeries.add(new Day(12, 2, 2004), time(7, 21));
    localTimeSeries.add(new Day(13, 2, 2004), time(7, 19));
    localTimeSeries.add(new Day(14, 2, 2004), time(7, 17));
    localTimeSeries.add(new Day(15, 2, 2004), time(7, 15));
    localTimeSeries.add(new Day(16, 2, 2004), time(7, 13));
    localTimeSeries.add(new Day(17, 2, 2004), time(7, 11));
    localTimeSeries.add(new Day(18, 2, 2004), time(7, 10));
    localTimeSeries.add(new Day(19, 2, 2004), time(7, 8));
    localTimeSeries.add(new Day(20, 2, 2004), time(7, 6));
    localTimeSeries.add(new Day(21, 2, 2004), time(7, 4));
    localTimeSeries.add(new Day(22, 2, 2004), time(7, 2));
    localTimeSeries.add(new Day(23, 2, 2004), time(6, 59));
    localTimeSeries.add(new Day(24, 2, 2004), time(6, 57));
    localTimeSeries.add(new Day(25, 2, 2004), time(6, 55));
    localTimeSeries.add(new Day(26, 2, 2004), time(6, 53));
    localTimeSeries.add(new Day(27, 2, 2004), time(6, 51));
    localTimeSeries.add(new Day(28, 2, 2004), time(6, 49));
    localTimeSeries.add(new Day(29, 2, 2004), time(6, 47));
    localTimeSeries.add(new Day(1, 3, 2004), time(6, 45));
    localTimeSeries.add(new Day(2, 3, 2004), time(6, 43));
    localTimeSeries.add(new Day(3, 3, 2004), time(6, 40));
    localTimeSeries.add(new Day(4, 3, 2004), time(6, 38));
    localTimeSeries.add(new Day(5, 3, 2004), time(6, 36));
    localTimeSeries.add(new Day(6, 3, 2004), time(6, 34));
    localTimeSeries.add(new Day(7, 3, 2004), time(6, 32));
    localTimeSeries.add(new Day(8, 3, 2004), time(6, 29));
    localTimeSeries.add(new Day(9, 3, 2004), time(6, 27));
    localTimeSeries.add(new Day(10, 3, 2004), time(6, 25));
    localTimeSeries.add(new Day(11, 3, 2004), time(6, 23));
    localTimeSeries.add(new Day(12, 3, 2004), time(6, 20));
    localTimeSeries.add(new Day(13, 3, 2004), time(6, 18));
    localTimeSeries.add(new Day(14, 3, 2004), time(6, 16));
    localTimeSeries.add(new Day(15, 3, 2004), time(6, 14));
    localTimeSeries.add(new Day(16, 3, 2004), time(6, 11));
    localTimeSeries.add(new Day(17, 3, 2004), time(6, 9));
    localTimeSeries.add(new Day(18, 3, 2004), time(6, 7));
    localTimeSeries.add(new Day(19, 3, 2004), time(6, 5));
    localTimeSeries.add(new Day(20, 3, 2004), time(6, 2));
    localTimeSeries.add(new Day(21, 3, 2004), time(6, 0));
    localTimeSeries.add(new Day(22, 3, 2004), time(5, 58));
    localTimeSeries.add(new Day(23, 3, 2004), time(5, 55));
    localTimeSeries.add(new Day(24, 3, 2004), time(5, 53));
    localTimeSeries.add(new Day(25, 3, 2004), time(5, 51));
    localTimeSeries.add(new Day(26, 3, 2004), time(5, 49));
    localTimeSeries.add(new Day(27, 3, 2004), time(5, 46));
    localTimeSeries.add(new Day(28, 3, 2004), time(6, 44));
    localTimeSeries.add(new Day(29, 3, 2004), time(6, 42));
    localTimeSeries.add(new Day(30, 3, 2004), time(6, 39));
    localTimeSeries.add(new Day(31, 3, 2004), time(6, 37));
    localTimeSeries.add(new Day(1, 4, 2004), time(6, 35));
    localTimeSeries.add(new Day(2, 4, 2004), time(6, 33));
    localTimeSeries.add(new Day(3, 4, 2004), time(6, 30));
    localTimeSeries.add(new Day(4, 4, 2004), time(6, 28));
    localTimeSeries.add(new Day(5, 4, 2004), time(6, 26));
    localTimeSeries.add(new Day(6, 4, 2004), time(6, 24));
    localTimeSeries.add(new Day(7, 4, 2004), time(6, 21));
    localTimeSeries.add(new Day(8, 4, 2004), time(6, 19));
    localTimeSeries.add(new Day(9, 4, 2004), time(6, 17));
    localTimeSeries.add(new Day(10, 4, 2004), time(6, 15));
    localTimeSeries.add(new Day(11, 4, 2004), time(6, 12));
    localTimeSeries.add(new Day(12, 4, 2004), time(6, 10));
    localTimeSeries.add(new Day(13, 4, 2004), time(6, 8));
    localTimeSeries.add(new Day(14, 4, 2004), time(6, 6));
    localTimeSeries.add(new Day(15, 4, 2004), time(6, 4));
    localTimeSeries.add(new Day(16, 4, 2004), time(6, 2));
    localTimeSeries.add(new Day(17, 4, 2004), time(5, 59));
    localTimeSeries.add(new Day(18, 4, 2004), time(5, 57));
    localTimeSeries.add(new Day(19, 4, 2004), time(5, 55));
    localTimeSeries.add(new Day(20, 4, 2004), time(5, 53));
    localTimeSeries.add(new Day(21, 4, 2004), time(5, 51));
    localTimeSeries.add(new Day(22, 4, 2004), time(5, 49));
    localTimeSeries.add(new Day(23, 4, 2004), time(5, 47));
    localTimeSeries.add(new Day(24, 4, 2004), time(5, 45));
    localTimeSeries.add(new Day(25, 4, 2004), time(5, 43));
    localTimeSeries.add(new Day(26, 4, 2004), time(5, 41));
    localTimeSeries.add(new Day(27, 4, 2004), time(5, 39));
    localTimeSeries.add(new Day(28, 4, 2004), time(5, 37));
    localTimeSeries.add(new Day(29, 4, 2004), time(5, 35));
    localTimeSeries.add(new Day(30, 4, 2004), time(5, 33));
    localTimeSeries.add(new Day(1, 5, 2004), time(5, 31));
    localTimeSeries.add(new Day(2, 5, 2004), time(5, 29));
    localTimeSeries.add(new Day(3, 5, 2004), time(5, 28));
    localTimeSeries.add(new Day(4, 5, 2004), time(5, 26));
    localTimeSeries.add(new Day(5, 5, 2004), time(5, 24));
    localTimeSeries.add(new Day(6, 5, 2004), time(5, 22));
    localTimeSeries.add(new Day(7, 5, 2004), time(5, 20));
    localTimeSeries.add(new Day(8, 5, 2004), time(5, 19));
    localTimeSeries.add(new Day(9, 5, 2004), time(5, 17));
    localTimeSeries.add(new Day(10, 5, 2004), time(5, 15));
    localTimeSeries.add(new Day(11, 5, 2004), time(5, 14));
    localTimeSeries.add(new Day(12, 5, 2004), time(5, 12));
    localTimeSeries.add(new Day(13, 5, 2004), time(5, 11));
    localTimeSeries.add(new Day(14, 5, 2004), time(5, 9));
    localTimeSeries.add(new Day(15, 5, 2004), time(5, 8));
    localTimeSeries.add(new Day(16, 5, 2004), time(5, 6));
    localTimeSeries.add(new Day(17, 5, 2004), time(5, 5));
    localTimeSeries.add(new Day(18, 5, 2004), time(5, 3));
    localTimeSeries.add(new Day(19, 5, 2004), time(5, 2));
    localTimeSeries.add(new Day(20, 5, 2004), time(5, 1));
    localTimeSeries.add(new Day(21, 5, 2004), time(4, 59));
    localTimeSeries.add(new Day(22, 5, 2004), time(4, 58));
    localTimeSeries.add(new Day(23, 5, 2004), time(4, 57));
    localTimeSeries.add(new Day(24, 5, 2004), time(4, 56));
    localTimeSeries.add(new Day(25, 5, 2004), time(4, 55));
    localTimeSeries.add(new Day(26, 5, 2004), time(4, 53));
    localTimeSeries.add(new Day(27, 5, 2004), time(4, 52));
    localTimeSeries.add(new Day(28, 5, 2004), time(4, 51));
    localTimeSeries.add(new Day(29, 5, 2004), time(4, 50));
    localTimeSeries.add(new Day(30, 5, 2004), time(4, 50));
    localTimeSeries.add(new Day(31, 5, 2004), time(4, 49));
    localTimeSeries.add(new Day(1, 6, 2004), time(4, 48));
    localTimeSeries.add(new Day(2, 6, 2004), time(4, 47));
    localTimeSeries.add(new Day(3, 6, 2004), time(4, 46));
    localTimeSeries.add(new Day(4, 6, 2004), time(4, 46));
    localTimeSeries.add(new Day(5, 6, 2004), time(4, 45));
    localTimeSeries.add(new Day(6, 6, 2004), time(4, 45));
    localTimeSeries.add(new Day(7, 6, 2004), time(4, 44));
    localTimeSeries.add(new Day(8, 6, 2004), time(4, 44));
    localTimeSeries.add(new Day(9, 6, 2004), time(4, 43));
    localTimeSeries.add(new Day(10, 6, 2004), time(4, 43));
    localTimeSeries.add(new Day(11, 6, 2004), time(4, 42));
    localTimeSeries.add(new Day(12, 6, 2004), time(4, 42));
    localTimeSeries.add(new Day(13, 6, 2004), time(4, 42));
    localTimeSeries.add(new Day(14, 6, 2004), time(4, 42));
    localTimeSeries.add(new Day(15, 6, 2004), time(4, 42));
    localTimeSeries.add(new Day(16, 6, 2004), time(4, 42));
    localTimeSeries.add(new Day(17, 6, 2004), time(4, 42));
    localTimeSeries.add(new Day(18, 6, 2004), time(4, 42));
    localTimeSeries.add(new Day(19, 6, 2004), time(4, 42));
    localTimeSeries.add(new Day(20, 6, 2004), time(4, 42));
    localTimeSeries.add(new Day(21, 6, 2004), time(4, 42));
    localTimeSeries.add(new Day(22, 6, 2004), time(4, 42));
    localTimeSeries.add(new Day(23, 6, 2004), time(4, 43));
    localTimeSeries.add(new Day(24, 6, 2004), time(4, 43));
    localTimeSeries.add(new Day(25, 6, 2004), time(4, 43));
    localTimeSeries.add(new Day(26, 6, 2004), time(4, 44));
    localTimeSeries.add(new Day(27, 6, 2004), time(4, 44));
    localTimeSeries.add(new Day(28, 6, 2004), time(4, 45));
    localTimeSeries.add(new Day(29, 6, 2004), time(4, 45));
    localTimeSeries.add(new Day(30, 6, 2004), time(4, 46));
    localTimeSeries.add(new Day(1, 7, 2004), time(4, 47));
    localTimeSeries.add(new Day(2, 7, 2004), time(4, 47));
    localTimeSeries.add(new Day(3, 7, 2004), time(4, 48));
    localTimeSeries.add(new Day(4, 7, 2004), time(4, 49));
    localTimeSeries.add(new Day(5, 7, 2004), time(4, 50));
    localTimeSeries.add(new Day(6, 7, 2004), time(4, 51));
    localTimeSeries.add(new Day(7, 7, 2004), time(4, 51));
    localTimeSeries.add(new Day(8, 7, 2004), time(4, 52));
    localTimeSeries.add(new Day(9, 7, 2004), time(4, 53));
    localTimeSeries.add(new Day(10, 7, 2004), time(4, 54));
    localTimeSeries.add(new Day(11, 7, 2004), time(4, 55));
    localTimeSeries.add(new Day(12, 7, 2004), time(4, 57));
    localTimeSeries.add(new Day(13, 7, 2004), time(4, 58));
    localTimeSeries.add(new Day(14, 7, 2004), time(4, 59));
    localTimeSeries.add(new Day(15, 7, 2004), time(5, 0));
    localTimeSeries.add(new Day(16, 7, 2004), time(5, 1));
    localTimeSeries.add(new Day(17, 7, 2004), time(5, 2));
    localTimeSeries.add(new Day(18, 7, 2004), time(5, 4));
    localTimeSeries.add(new Day(19, 7, 2004), time(5, 5));
    localTimeSeries.add(new Day(20, 7, 2004), time(5, 6));
    localTimeSeries.add(new Day(21, 7, 2004), time(5, 8));
    localTimeSeries.add(new Day(22, 7, 2004), time(5, 9));
    localTimeSeries.add(new Day(23, 7, 2004), time(5, 10));
    localTimeSeries.add(new Day(24, 7, 2004), time(5, 12));
    localTimeSeries.add(new Day(25, 7, 2004), time(5, 13));
    localTimeSeries.add(new Day(26, 7, 2004), time(5, 14));
    localTimeSeries.add(new Day(27, 7, 2004), time(5, 16));
    localTimeSeries.add(new Day(28, 7, 2004), time(5, 17));
    localTimeSeries.add(new Day(29, 7, 2004), time(5, 19));
    localTimeSeries.add(new Day(30, 7, 2004), time(5, 20));
    localTimeSeries.add(new Day(31, 7, 2004), time(5, 22));
    localTimeSeries.add(new Day(1, 8, 2004), time(5, 23));
    localTimeSeries.add(new Day(2, 8, 2004), time(5, 25));
    localTimeSeries.add(new Day(3, 8, 2004), time(5, 26));
    localTimeSeries.add(new Day(4, 8, 2004), time(5, 28));
    localTimeSeries.add(new Day(5, 8, 2004), time(5, 29));
    localTimeSeries.add(new Day(6, 8, 2004), time(5, 31));
    localTimeSeries.add(new Day(7, 8, 2004), time(5, 32));
    localTimeSeries.add(new Day(8, 8, 2004), time(5, 34));
    localTimeSeries.add(new Day(9, 8, 2004), time(5, 36));
    localTimeSeries.add(new Day(10, 8, 2004), time(5, 37));
    localTimeSeries.add(new Day(11, 8, 2004), time(5, 39));
    localTimeSeries.add(new Day(12, 8, 2004), time(5, 40));
    localTimeSeries.add(new Day(13, 8, 2004), time(5, 42));
    localTimeSeries.add(new Day(14, 8, 2004), time(5, 43));
    localTimeSeries.add(new Day(15, 8, 2004), time(5, 45));
    localTimeSeries.add(new Day(16, 8, 2004), time(5, 47));
    localTimeSeries.add(new Day(17, 8, 2004), time(5, 48));
    localTimeSeries.add(new Day(18, 8, 2004), time(5, 50));
    localTimeSeries.add(new Day(19, 8, 2004), time(5, 51));
    localTimeSeries.add(new Day(20, 8, 2004), time(5, 53));
    localTimeSeries.add(new Day(21, 8, 2004), time(5, 55));
    localTimeSeries.add(new Day(22, 8, 2004), time(5, 56));
    localTimeSeries.add(new Day(23, 8, 2004), time(5, 58));
    localTimeSeries.add(new Day(24, 8, 2004), time(5, 59));
    localTimeSeries.add(new Day(25, 8, 2004), time(6, 1));
    localTimeSeries.add(new Day(26, 8, 2004), time(6, 3));
    localTimeSeries.add(new Day(27, 8, 2004), time(6, 4));
    localTimeSeries.add(new Day(28, 8, 2004), time(6, 6));
    localTimeSeries.add(new Day(29, 8, 2004), time(6, 7));
    localTimeSeries.add(new Day(30, 8, 2004), time(6, 9));
    localTimeSeries.add(new Day(31, 8, 2004), time(6, 10));
    localTimeSeries.add(new Day(1, 9, 2004), time(6, 12));
    localTimeSeries.add(new Day(2, 9, 2004), time(6, 14));
    localTimeSeries.add(new Day(3, 9, 2004), time(6, 15));
    localTimeSeries.add(new Day(4, 9, 2004), time(6, 17));
    localTimeSeries.add(new Day(5, 9, 2004), time(6, 18));
    localTimeSeries.add(new Day(6, 9, 2004), time(6, 20));
    localTimeSeries.add(new Day(7, 9, 2004), time(6, 22));
    localTimeSeries.add(new Day(8, 9, 2004), time(6, 23));
    localTimeSeries.add(new Day(9, 9, 2004), time(6, 25));
    localTimeSeries.add(new Day(10, 9, 2004), time(6, 26));
    localTimeSeries.add(new Day(11, 9, 2004), time(6, 28));
    localTimeSeries.add(new Day(12, 9, 2004), time(6, 30));
    localTimeSeries.add(new Day(13, 9, 2004), time(6, 31));
    localTimeSeries.add(new Day(14, 9, 2004), time(6, 33));
    localTimeSeries.add(new Day(15, 9, 2004), time(6, 34));
    localTimeSeries.add(new Day(16, 9, 2004), time(6, 36));
    localTimeSeries.add(new Day(17, 9, 2004), time(6, 38));
    localTimeSeries.add(new Day(18, 9, 2004), time(6, 39));
    localTimeSeries.add(new Day(19, 9, 2004), time(6, 41));
    localTimeSeries.add(new Day(20, 9, 2004), time(6, 42));
    localTimeSeries.add(new Day(21, 9, 2004), time(6, 44));
    localTimeSeries.add(new Day(22, 9, 2004), time(6, 46));
    localTimeSeries.add(new Day(23, 9, 2004), time(6, 47));
    localTimeSeries.add(new Day(24, 9, 2004), time(6, 49));
    localTimeSeries.add(new Day(25, 9, 2004), time(6, 50));
    localTimeSeries.add(new Day(26, 9, 2004), time(6, 52));
    localTimeSeries.add(new Day(27, 9, 2004), time(6, 54));
    localTimeSeries.add(new Day(28, 9, 2004), time(6, 55));
    localTimeSeries.add(new Day(29, 9, 2004), time(6, 57));
    localTimeSeries.add(new Day(30, 9, 2004), time(6, 58));
    localTimeSeries.add(new Day(1, 10, 2004), time(7, 0));
    localTimeSeries.add(new Day(2, 10, 2004), time(7, 2));
    localTimeSeries.add(new Day(3, 10, 2004), time(7, 3));
    localTimeSeries.add(new Day(4, 10, 2004), time(7, 5));
    localTimeSeries.add(new Day(5, 10, 2004), time(7, 7));
    localTimeSeries.add(new Day(6, 10, 2004), time(7, 8));
    localTimeSeries.add(new Day(7, 10, 2004), time(7, 10));
    localTimeSeries.add(new Day(8, 10, 2004), time(7, 12));
    localTimeSeries.add(new Day(9, 10, 2004), time(7, 13));
    localTimeSeries.add(new Day(10, 10, 2004), time(7, 15));
    localTimeSeries.add(new Day(11, 10, 2004), time(7, 17));
    localTimeSeries.add(new Day(12, 10, 2004), time(7, 18));
    localTimeSeries.add(new Day(13, 10, 2004), time(7, 20));
    localTimeSeries.add(new Day(14, 10, 2004), time(7, 22));
    localTimeSeries.add(new Day(15, 10, 2004), time(7, 23));
    localTimeSeries.add(new Day(16, 10, 2004), time(7, 25));
    localTimeSeries.add(new Day(17, 10, 2004), time(7, 27));
    localTimeSeries.add(new Day(18, 10, 2004), time(7, 29));
    localTimeSeries.add(new Day(19, 10, 2004), time(7, 30));
    localTimeSeries.add(new Day(20, 10, 2004), time(7, 32));
    localTimeSeries.add(new Day(21, 10, 2004), time(7, 34));
    localTimeSeries.add(new Day(22, 10, 2004), time(7, 35));
    localTimeSeries.add(new Day(23, 10, 2004), time(7, 37));
    localTimeSeries.add(new Day(24, 10, 2004), time(7, 39));
    localTimeSeries.add(new Day(25, 10, 2004), time(7, 41));
    localTimeSeries.add(new Day(26, 10, 2004), time(7, 42));
    localTimeSeries.add(new Day(27, 10, 2004), time(7, 44));
    localTimeSeries.add(new Day(28, 10, 2004), time(7, 46));
    localTimeSeries.add(new Day(29, 10, 2004), time(7, 48));
    localTimeSeries.add(new Day(30, 10, 2004), time(7, 49));
    localTimeSeries.add(new Day(31, 10, 2004), time(6, 51));
    localTimeSeries.add(new Day(1, 11, 2004), time(6, 53));
    localTimeSeries.add(new Day(2, 11, 2004), time(6, 55));
    localTimeSeries.add(new Day(3, 11, 2004), time(6, 57));
    localTimeSeries.add(new Day(4, 11, 2004), time(6, 58));
    localTimeSeries.add(new Day(5, 11, 2004), time(7, 0));
    localTimeSeries.add(new Day(6, 11, 2004), time(7, 2));
    localTimeSeries.add(new Day(7, 11, 2004), time(7, 4));
    localTimeSeries.add(new Day(8, 11, 2004), time(7, 5));
    localTimeSeries.add(new Day(9, 11, 2004), time(7, 7));
    localTimeSeries.add(new Day(10, 11, 2004), time(7, 9));
    localTimeSeries.add(new Day(11, 11, 2004), time(7, 11));
    localTimeSeries.add(new Day(12, 11, 2004), time(7, 12));
    localTimeSeries.add(new Day(13, 11, 2004), time(7, 14));
    localTimeSeries.add(new Day(14, 11, 2004), time(7, 16));
    localTimeSeries.add(new Day(15, 11, 2004), time(7, 17));
    localTimeSeries.add(new Day(16, 11, 2004), time(7, 19));
    localTimeSeries.add(new Day(17, 11, 2004), time(7, 21));
    localTimeSeries.add(new Day(18, 11, 2004), time(7, 23));
    localTimeSeries.add(new Day(19, 11, 2004), time(7, 24));
    localTimeSeries.add(new Day(20, 11, 2004), time(7, 26));
    localTimeSeries.add(new Day(21, 11, 2004), time(7, 28));
    localTimeSeries.add(new Day(22, 11, 2004), time(7, 29));
    localTimeSeries.add(new Day(23, 11, 2004), time(7, 31));
    localTimeSeries.add(new Day(24, 11, 2004), time(7, 32));
    localTimeSeries.add(new Day(25, 11, 2004), time(7, 34));
    localTimeSeries.add(new Day(26, 11, 2004), time(7, 35));
    localTimeSeries.add(new Day(27, 11, 2004), time(7, 37));
    localTimeSeries.add(new Day(28, 11, 2004), time(7, 38));
    localTimeSeries.add(new Day(29, 11, 2004), time(7, 40));
    localTimeSeries.add(new Day(30, 11, 2004), time(7, 41));
    localTimeSeries.add(new Day(1, 12, 2004), time(7, 43));
    localTimeSeries.add(new Day(2, 12, 2004), time(7, 44));
    localTimeSeries.add(new Day(3, 12, 2004), time(7, 45));
    localTimeSeries.add(new Day(4, 12, 2004), time(7, 47));
    localTimeSeries.add(new Day(5, 12, 2004), time(7, 48));
    localTimeSeries.add(new Day(6, 12, 2004), time(7, 49));
    localTimeSeries.add(new Day(7, 12, 2004), time(7, 51));
    localTimeSeries.add(new Day(8, 12, 2004), time(7, 52));
    localTimeSeries.add(new Day(9, 12, 2004), time(7, 53));
    localTimeSeries.add(new Day(10, 12, 2004), time(7, 54));
    localTimeSeries.add(new Day(11, 12, 2004), time(7, 55));
    localTimeSeries.add(new Day(12, 12, 2004), time(7, 56));
    localTimeSeries.add(new Day(13, 12, 2004), time(7, 57));
    localTimeSeries.add(new Day(14, 12, 2004), time(7, 58));
    localTimeSeries.add(new Day(15, 12, 2004), time(7, 59));
    localTimeSeries.add(new Day(16, 12, 2004), time(7, 59));
    localTimeSeries.add(new Day(17, 12, 2004), time(8, 0));
    localTimeSeries.add(new Day(18, 12, 2004), time(8, 1));
    localTimeSeries.add(new Day(19, 12, 2004), time(8, 2));
    localTimeSeries.add(new Day(20, 12, 2004), time(8, 2));
    localTimeSeries.add(new Day(21, 12, 2004), time(8, 3));
    localTimeSeries.add(new Day(22, 12, 2004), time(8, 3));
    localTimeSeries.add(new Day(23, 12, 2004), time(8, 4));
    localTimeSeries.add(new Day(24, 12, 2004), time(8, 4));
    localTimeSeries.add(new Day(25, 12, 2004), time(8, 4));
    localTimeSeries.add(new Day(26, 12, 2004), time(8, 5));
    localTimeSeries.add(new Day(27, 12, 2004), time(8, 5));
    localTimeSeries.add(new Day(28, 12, 2004), time(8, 5));
    localTimeSeries.add(new Day(29, 12, 2004), time(8, 5));
    localTimeSeries.add(new Day(30, 12, 2004), time(8, 5));
    localTimeSeries.add(new Day(31, 12, 2004), time(8, 5));
    return localTimeSeries;
  }

  public static TimeSeries createSunsetSeries()
  {
    TimeSeries localTimeSeries = new TimeSeries("Sunset");
    localTimeSeries.add(new Day(1, 1, 2004), time(16, 0));
    localTimeSeries.add(new Day(2, 1, 2004), time(16, 1));
    localTimeSeries.add(new Day(3, 1, 2004), time(16, 2));
    localTimeSeries.add(new Day(4, 1, 2004), time(16, 3));
    localTimeSeries.add(new Day(5, 1, 2004), time(16, 4));
    localTimeSeries.add(new Day(6, 1, 2004), time(16, 5));
    localTimeSeries.add(new Day(7, 1, 2004), time(16, 7));
    localTimeSeries.add(new Day(8, 1, 2004), time(16, 8));
    localTimeSeries.add(new Day(9, 1, 2004), time(16, 9));
    localTimeSeries.add(new Day(10, 1, 2004), time(16, 11));
    localTimeSeries.add(new Day(11, 1, 2004), time(16, 12));
    localTimeSeries.add(new Day(12, 1, 2004), time(16, 13));
    localTimeSeries.add(new Day(13, 1, 2004), time(16, 15));
    localTimeSeries.add(new Day(14, 1, 2004), time(16, 16));
    localTimeSeries.add(new Day(15, 1, 2004), time(16, 18));
    localTimeSeries.add(new Day(16, 1, 2004), time(16, 19));
    localTimeSeries.add(new Day(17, 1, 2004), time(16, 21));
    localTimeSeries.add(new Day(18, 1, 2004), time(16, 22));
    localTimeSeries.add(new Day(19, 1, 2004), time(16, 24));
    localTimeSeries.add(new Day(20, 1, 2004), time(16, 26));
    localTimeSeries.add(new Day(21, 1, 2004), time(16, 27));
    localTimeSeries.add(new Day(22, 1, 2004), time(16, 29));
    localTimeSeries.add(new Day(23, 1, 2004), time(16, 31));
    localTimeSeries.add(new Day(24, 1, 2004), time(16, 32));
    localTimeSeries.add(new Day(25, 1, 2004), time(16, 34));
    localTimeSeries.add(new Day(26, 1, 2004), time(16, 36));
    localTimeSeries.add(new Day(27, 1, 2004), time(16, 38));
    localTimeSeries.add(new Day(28, 1, 2004), time(16, 39));
    localTimeSeries.add(new Day(29, 1, 2004), time(16, 41));
    localTimeSeries.add(new Day(30, 1, 2004), time(16, 43));
    localTimeSeries.add(new Day(31, 1, 2004), time(16, 45));
    localTimeSeries.add(new Day(1, 2, 2004), time(16, 47));
    localTimeSeries.add(new Day(2, 2, 2004), time(16, 48));
    localTimeSeries.add(new Day(3, 2, 2004), time(16, 50));
    localTimeSeries.add(new Day(4, 2, 2004), time(16, 52));
    localTimeSeries.add(new Day(5, 2, 2004), time(16, 54));
    localTimeSeries.add(new Day(6, 2, 2004), time(16, 56));
    localTimeSeries.add(new Day(7, 2, 2004), time(16, 57));
    localTimeSeries.add(new Day(8, 2, 2004), time(16, 59));
    localTimeSeries.add(new Day(9, 2, 2004), time(17, 1));
    localTimeSeries.add(new Day(10, 2, 2004), time(17, 3));
    localTimeSeries.add(new Day(11, 2, 2004), time(17, 5));
    localTimeSeries.add(new Day(12, 2, 2004), time(17, 7));
    localTimeSeries.add(new Day(13, 2, 2004), time(17, 8));
    localTimeSeries.add(new Day(14, 2, 2004), time(17, 10));
    localTimeSeries.add(new Day(15, 2, 2004), time(17, 12));
    localTimeSeries.add(new Day(16, 2, 2004), time(17, 14));
    localTimeSeries.add(new Day(17, 2, 2004), time(17, 16));
    localTimeSeries.add(new Day(18, 2, 2004), time(17, 17));
    localTimeSeries.add(new Day(19, 2, 2004), time(17, 19));
    localTimeSeries.add(new Day(20, 2, 2004), time(17, 21));
    localTimeSeries.add(new Day(21, 2, 2004), time(17, 23));
    localTimeSeries.add(new Day(22, 2, 2004), time(17, 25));
    localTimeSeries.add(new Day(23, 2, 2004), time(17, 27));
    localTimeSeries.add(new Day(24, 2, 2004), time(17, 28));
    localTimeSeries.add(new Day(25, 2, 2004), time(17, 30));
    localTimeSeries.add(new Day(26, 2, 2004), time(17, 32));
    localTimeSeries.add(new Day(27, 2, 2004), time(17, 34));
    localTimeSeries.add(new Day(28, 2, 2004), time(17, 35));
    localTimeSeries.add(new Day(29, 2, 2004), time(17, 37));
    localTimeSeries.add(new Day(1, 3, 2004), time(17, 39));
    localTimeSeries.add(new Day(2, 3, 2004), time(17, 41));
    localTimeSeries.add(new Day(3, 3, 2004), time(17, 43));
    localTimeSeries.add(new Day(4, 3, 2004), time(17, 44));
    localTimeSeries.add(new Day(5, 3, 2004), time(17, 46));
    localTimeSeries.add(new Day(6, 3, 2004), time(17, 48));
    localTimeSeries.add(new Day(7, 3, 2004), time(17, 50));
    localTimeSeries.add(new Day(8, 3, 2004), time(17, 51));
    localTimeSeries.add(new Day(9, 3, 2004), time(17, 53));
    localTimeSeries.add(new Day(10, 3, 2004), time(17, 55));
    localTimeSeries.add(new Day(11, 3, 2004), time(17, 56));
    localTimeSeries.add(new Day(12, 3, 2004), time(17, 58));
    localTimeSeries.add(new Day(13, 3, 2004), time(18, 0));
    localTimeSeries.add(new Day(14, 3, 2004), time(18, 2));
    localTimeSeries.add(new Day(15, 3, 2004), time(18, 3));
    localTimeSeries.add(new Day(16, 3, 2004), time(18, 5));
    localTimeSeries.add(new Day(17, 3, 2004), time(18, 7));
    localTimeSeries.add(new Day(18, 3, 2004), time(18, 8));
    localTimeSeries.add(new Day(19, 3, 2004), time(18, 10));
    localTimeSeries.add(new Day(20, 3, 2004), time(18, 12));
    localTimeSeries.add(new Day(21, 3, 2004), time(18, 13));
    localTimeSeries.add(new Day(22, 3, 2004), time(18, 15));
    localTimeSeries.add(new Day(23, 3, 2004), time(18, 17));
    localTimeSeries.add(new Day(24, 3, 2004), time(18, 19));
    localTimeSeries.add(new Day(25, 3, 2004), time(18, 20));
    localTimeSeries.add(new Day(26, 3, 2004), time(18, 22));
    localTimeSeries.add(new Day(27, 3, 2004), time(18, 24));
    localTimeSeries.add(new Day(28, 3, 2004), time(19, 25));
    localTimeSeries.add(new Day(29, 3, 2004), time(19, 27));
    localTimeSeries.add(new Day(30, 3, 2004), time(19, 29));
    localTimeSeries.add(new Day(31, 3, 2004), time(19, 30));
    localTimeSeries.add(new Day(1, 4, 2004), time(19, 32));
    localTimeSeries.add(new Day(2, 4, 2004), time(19, 34));
    localTimeSeries.add(new Day(3, 4, 2004), time(19, 35));
    localTimeSeries.add(new Day(4, 4, 2004), time(19, 37));
    localTimeSeries.add(new Day(5, 4, 2004), time(19, 39));
    localTimeSeries.add(new Day(6, 4, 2004), time(19, 40));
    localTimeSeries.add(new Day(7, 4, 2004), time(19, 42));
    localTimeSeries.add(new Day(8, 4, 2004), time(19, 44));
    localTimeSeries.add(new Day(9, 4, 2004), time(19, 45));
    localTimeSeries.add(new Day(10, 4, 2004), time(19, 47));
    localTimeSeries.add(new Day(11, 4, 2004), time(19, 49));
    localTimeSeries.add(new Day(12, 4, 2004), time(19, 50));
    localTimeSeries.add(new Day(13, 4, 2004), time(19, 52));
    localTimeSeries.add(new Day(14, 4, 2004), time(19, 54));
    localTimeSeries.add(new Day(15, 4, 2004), time(19, 55));
    localTimeSeries.add(new Day(16, 4, 2004), time(19, 57));
    localTimeSeries.add(new Day(17, 4, 2004), time(19, 59));
    localTimeSeries.add(new Day(18, 4, 2004), time(20, 0));
    localTimeSeries.add(new Day(19, 4, 2004), time(20, 2));
    localTimeSeries.add(new Day(20, 4, 2004), time(20, 4));
    localTimeSeries.add(new Day(21, 4, 2004), time(20, 5));
    localTimeSeries.add(new Day(22, 4, 2004), time(20, 7));
    localTimeSeries.add(new Day(23, 4, 2004), time(20, 9));
    localTimeSeries.add(new Day(24, 4, 2004), time(20, 10));
    localTimeSeries.add(new Day(25, 4, 2004), time(20, 12));
    localTimeSeries.add(new Day(26, 4, 2004), time(20, 14));
    localTimeSeries.add(new Day(27, 4, 2004), time(20, 15));
    localTimeSeries.add(new Day(28, 4, 2004), time(20, 17));
    localTimeSeries.add(new Day(29, 4, 2004), time(20, 19));
    localTimeSeries.add(new Day(30, 4, 2004), time(20, 20));
    localTimeSeries.add(new Day(1, 5, 2004), time(20, 22));
    localTimeSeries.add(new Day(2, 5, 2004), time(20, 24));
    localTimeSeries.add(new Day(3, 5, 2004), time(20, 25));
    localTimeSeries.add(new Day(4, 5, 2004), time(20, 27));
    localTimeSeries.add(new Day(5, 5, 2004), time(20, 28));
    localTimeSeries.add(new Day(6, 5, 2004), time(20, 30));
    localTimeSeries.add(new Day(7, 5, 2004), time(20, 32));
    localTimeSeries.add(new Day(8, 5, 2004), time(20, 33));
    localTimeSeries.add(new Day(9, 5, 2004), time(20, 35));
    localTimeSeries.add(new Day(10, 5, 2004), time(20, 36));
    localTimeSeries.add(new Day(11, 5, 2004), time(20, 38));
    localTimeSeries.add(new Day(12, 5, 2004), time(20, 40));
    localTimeSeries.add(new Day(13, 5, 2004), time(20, 41));
    localTimeSeries.add(new Day(14, 5, 2004), time(20, 43));
    localTimeSeries.add(new Day(15, 5, 2004), time(20, 44));
    localTimeSeries.add(new Day(16, 5, 2004), time(20, 46));
    localTimeSeries.add(new Day(17, 5, 2004), time(20, 47));
    localTimeSeries.add(new Day(18, 5, 2004), time(20, 49));
    localTimeSeries.add(new Day(19, 5, 2004), time(20, 50));
    localTimeSeries.add(new Day(20, 5, 2004), time(20, 51));
    localTimeSeries.add(new Day(21, 5, 2004), time(20, 53));
    localTimeSeries.add(new Day(22, 5, 2004), time(20, 54));
    localTimeSeries.add(new Day(23, 5, 2004), time(20, 56));
    localTimeSeries.add(new Day(24, 5, 2004), time(20, 57));
    localTimeSeries.add(new Day(25, 5, 2004), time(20, 58));
    localTimeSeries.add(new Day(26, 5, 2004), time(21, 0));
    localTimeSeries.add(new Day(27, 5, 2004), time(21, 1));
    localTimeSeries.add(new Day(28, 5, 2004), time(21, 2));
    localTimeSeries.add(new Day(29, 5, 2004), time(21, 3));
    localTimeSeries.add(new Day(30, 5, 2004), time(21, 4));
    localTimeSeries.add(new Day(31, 5, 2004), time(21, 6));
    localTimeSeries.add(new Day(1, 6, 2004), time(21, 7));
    localTimeSeries.add(new Day(2, 6, 2004), time(21, 8));
    localTimeSeries.add(new Day(3, 6, 2004), time(21, 9));
    localTimeSeries.add(new Day(4, 6, 2004), time(21, 10));
    localTimeSeries.add(new Day(5, 6, 2004), time(21, 11));
    localTimeSeries.add(new Day(6, 6, 2004), time(21, 12));
    localTimeSeries.add(new Day(7, 6, 2004), time(21, 13));
    localTimeSeries.add(new Day(8, 6, 2004), time(21, 13));
    localTimeSeries.add(new Day(9, 6, 2004), time(21, 14));
    localTimeSeries.add(new Day(10, 6, 2004), time(21, 15));
    localTimeSeries.add(new Day(11, 6, 2004), time(21, 16));
    localTimeSeries.add(new Day(12, 6, 2004), time(21, 16));
    localTimeSeries.add(new Day(13, 6, 2004), time(21, 17));
    localTimeSeries.add(new Day(14, 6, 2004), time(21, 18));
    localTimeSeries.add(new Day(15, 6, 2004), time(21, 18));
    localTimeSeries.add(new Day(16, 6, 2004), time(21, 19));
    localTimeSeries.add(new Day(17, 6, 2004), time(21, 19));
    localTimeSeries.add(new Day(18, 6, 2004), time(21, 19));
    localTimeSeries.add(new Day(19, 6, 2004), time(21, 20));
    localTimeSeries.add(new Day(20, 6, 2004), time(21, 20));
    localTimeSeries.add(new Day(21, 6, 2004), time(21, 20));
    localTimeSeries.add(new Day(22, 6, 2004), time(21, 21));
    localTimeSeries.add(new Day(23, 6, 2004), time(21, 21));
    localTimeSeries.add(new Day(24, 6, 2004), time(21, 21));
    localTimeSeries.add(new Day(25, 6, 2004), time(21, 21));
    localTimeSeries.add(new Day(26, 6, 2004), time(21, 21));
    localTimeSeries.add(new Day(27, 6, 2004), time(21, 21));
    localTimeSeries.add(new Day(28, 6, 2004), time(21, 21));
    localTimeSeries.add(new Day(29, 6, 2004), time(21, 21));
    localTimeSeries.add(new Day(30, 6, 2004), time(21, 21));
    localTimeSeries.add(new Day(1, 7, 2004), time(21, 20));
    localTimeSeries.add(new Day(2, 7, 2004), time(21, 20));
    localTimeSeries.add(new Day(3, 7, 2004), time(21, 19));
    localTimeSeries.add(new Day(4, 7, 2004), time(21, 19));
    localTimeSeries.add(new Day(5, 7, 2004), time(21, 18));
    localTimeSeries.add(new Day(6, 7, 2004), time(21, 18));
    localTimeSeries.add(new Day(7, 7, 2004), time(21, 17));
    localTimeSeries.add(new Day(8, 7, 2004), time(21, 17));
    localTimeSeries.add(new Day(9, 7, 2004), time(21, 16));
    localTimeSeries.add(new Day(10, 7, 2004), time(21, 15));
    localTimeSeries.add(new Day(11, 7, 2004), time(21, 14));
    localTimeSeries.add(new Day(12, 7, 2004), time(21, 14));
    localTimeSeries.add(new Day(13, 7, 2004), time(21, 13));
    localTimeSeries.add(new Day(14, 7, 2004), time(21, 12));
    localTimeSeries.add(new Day(15, 7, 2004), time(21, 11));
    localTimeSeries.add(new Day(16, 7, 2004), time(21, 10));
    localTimeSeries.add(new Day(17, 7, 2004), time(21, 9));
    localTimeSeries.add(new Day(18, 7, 2004), time(21, 8));
    localTimeSeries.add(new Day(19, 7, 2004), time(21, 7));
    localTimeSeries.add(new Day(20, 7, 2004), time(21, 5));
    localTimeSeries.add(new Day(21, 7, 2004), time(21, 4));
    localTimeSeries.add(new Day(22, 7, 2004), time(21, 3));
    localTimeSeries.add(new Day(23, 7, 2004), time(21, 2));
    localTimeSeries.add(new Day(24, 7, 2004), time(21, 0));
    localTimeSeries.add(new Day(25, 7, 2004), time(20, 59));
    localTimeSeries.add(new Day(26, 7, 2004), time(20, 58));
    localTimeSeries.add(new Day(27, 7, 2004), time(20, 56));
    localTimeSeries.add(new Day(28, 7, 2004), time(20, 55));
    localTimeSeries.add(new Day(29, 7, 2004), time(20, 53));
    localTimeSeries.add(new Day(30, 7, 2004), time(20, 52));
    localTimeSeries.add(new Day(31, 7, 2004), time(20, 50));
    localTimeSeries.add(new Day(1, 8, 2004), time(20, 48));
    localTimeSeries.add(new Day(2, 8, 2004), time(20, 47));
    localTimeSeries.add(new Day(3, 8, 2004), time(20, 45));
    localTimeSeries.add(new Day(4, 8, 2004), time(20, 43));
    localTimeSeries.add(new Day(5, 8, 2004), time(20, 42));
    localTimeSeries.add(new Day(6, 8, 2004), time(20, 40));
    localTimeSeries.add(new Day(7, 8, 2004), time(20, 38));
    localTimeSeries.add(new Day(8, 8, 2004), time(20, 36));
    localTimeSeries.add(new Day(9, 8, 2004), time(20, 34));
    localTimeSeries.add(new Day(10, 8, 2004), time(20, 33));
    localTimeSeries.add(new Day(11, 8, 2004), time(20, 31));
    localTimeSeries.add(new Day(12, 8, 2004), time(20, 29));
    localTimeSeries.add(new Day(13, 8, 2004), time(20, 27));
    localTimeSeries.add(new Day(14, 8, 2004), time(20, 25));
    localTimeSeries.add(new Day(15, 8, 2004), time(20, 23));
    localTimeSeries.add(new Day(16, 8, 2004), time(20, 21));
    localTimeSeries.add(new Day(17, 8, 2004), time(20, 19));
    localTimeSeries.add(new Day(18, 8, 2004), time(20, 17));
    localTimeSeries.add(new Day(19, 8, 2004), time(20, 15));
    localTimeSeries.add(new Day(20, 8, 2004), time(20, 13));
    localTimeSeries.add(new Day(21, 8, 2004), time(20, 11));
    localTimeSeries.add(new Day(22, 8, 2004), time(20, 9));
    localTimeSeries.add(new Day(23, 8, 2004), time(20, 7));
    localTimeSeries.add(new Day(24, 8, 2004), time(20, 4));
    localTimeSeries.add(new Day(25, 8, 2004), time(20, 2));
    localTimeSeries.add(new Day(26, 8, 2004), time(20, 0));
    localTimeSeries.add(new Day(27, 8, 2004), time(19, 58));
    localTimeSeries.add(new Day(28, 8, 2004), time(19, 56));
    localTimeSeries.add(new Day(29, 8, 2004), time(19, 54));
    localTimeSeries.add(new Day(30, 8, 2004), time(19, 51));
    localTimeSeries.add(new Day(31, 8, 2004), time(19, 49));
    localTimeSeries.add(new Day(1, 9, 2004), time(19, 47));
    localTimeSeries.add(new Day(2, 9, 2004), time(19, 45));
    localTimeSeries.add(new Day(3, 9, 2004), time(19, 42));
    localTimeSeries.add(new Day(4, 9, 2004), time(19, 40));
    localTimeSeries.add(new Day(5, 9, 2004), time(19, 38));
    localTimeSeries.add(new Day(6, 9, 2004), time(19, 36));
    localTimeSeries.add(new Day(7, 9, 2004), time(19, 33));
    localTimeSeries.add(new Day(8, 9, 2004), time(19, 31));
    localTimeSeries.add(new Day(9, 9, 2004), time(19, 29));
    localTimeSeries.add(new Day(10, 9, 2004), time(19, 27));
    localTimeSeries.add(new Day(11, 9, 2004), time(19, 24));
    localTimeSeries.add(new Day(12, 9, 2004), time(19, 22));
    localTimeSeries.add(new Day(13, 9, 2004), time(19, 20));
    localTimeSeries.add(new Day(14, 9, 2004), time(19, 17));
    localTimeSeries.add(new Day(15, 9, 2004), time(19, 15));
    localTimeSeries.add(new Day(16, 9, 2004), time(19, 13));
    localTimeSeries.add(new Day(17, 9, 2004), time(19, 11));
    localTimeSeries.add(new Day(18, 9, 2004), time(19, 8));
    localTimeSeries.add(new Day(19, 9, 2004), time(19, 6));
    localTimeSeries.add(new Day(20, 9, 2004), time(19, 4));
    localTimeSeries.add(new Day(21, 9, 2004), time(19, 1));
    localTimeSeries.add(new Day(22, 9, 2004), time(18, 59));
    localTimeSeries.add(new Day(23, 9, 2004), time(18, 57));
    localTimeSeries.add(new Day(24, 9, 2004), time(18, 54));
    localTimeSeries.add(new Day(25, 9, 2004), time(18, 52));
    localTimeSeries.add(new Day(26, 9, 2004), time(18, 50));
    localTimeSeries.add(new Day(27, 9, 2004), time(18, 47));
    localTimeSeries.add(new Day(28, 9, 2004), time(18, 45));
    localTimeSeries.add(new Day(29, 9, 2004), time(18, 43));
    localTimeSeries.add(new Day(30, 9, 2004), time(18, 41));
    localTimeSeries.add(new Day(1, 10, 2004), time(18, 38));
    localTimeSeries.add(new Day(2, 10, 2004), time(18, 36));
    localTimeSeries.add(new Day(3, 10, 2004), time(18, 34));
    localTimeSeries.add(new Day(4, 10, 2004), time(18, 31));
    localTimeSeries.add(new Day(5, 10, 2004), time(18, 29));
    localTimeSeries.add(new Day(6, 10, 2004), time(18, 27));
    localTimeSeries.add(new Day(7, 10, 2004), time(18, 25));
    localTimeSeries.add(new Day(8, 10, 2004), time(18, 22));
    localTimeSeries.add(new Day(9, 10, 2004), time(18, 20));
    localTimeSeries.add(new Day(10, 10, 2004), time(18, 18));
    localTimeSeries.add(new Day(11, 10, 2004), time(18, 16));
    localTimeSeries.add(new Day(12, 10, 2004), time(18, 14));
    localTimeSeries.add(new Day(13, 10, 2004), time(18, 11));
    localTimeSeries.add(new Day(14, 10, 2004), time(18, 9));
    localTimeSeries.add(new Day(15, 10, 2004), time(18, 7));
    localTimeSeries.add(new Day(16, 10, 2004), time(18, 5));
    localTimeSeries.add(new Day(17, 10, 2004), time(18, 3));
    localTimeSeries.add(new Day(18, 10, 2004), time(18, 1));
    localTimeSeries.add(new Day(19, 10, 2004), time(17, 59));
    localTimeSeries.add(new Day(20, 10, 2004), time(17, 57));
    localTimeSeries.add(new Day(21, 10, 2004), time(17, 55));
    localTimeSeries.add(new Day(22, 10, 2004), time(17, 53));
    localTimeSeries.add(new Day(23, 10, 2004), time(17, 50));
    localTimeSeries.add(new Day(24, 10, 2004), time(17, 48));
    localTimeSeries.add(new Day(25, 10, 2004), time(17, 46));
    localTimeSeries.add(new Day(26, 10, 2004), time(17, 45));
    localTimeSeries.add(new Day(27, 10, 2004), time(17, 43));
    localTimeSeries.add(new Day(28, 10, 2004), time(17, 41));
    localTimeSeries.add(new Day(29, 10, 2004), time(17, 39));
    localTimeSeries.add(new Day(30, 10, 2004), time(17, 37));
    localTimeSeries.add(new Day(31, 10, 2004), time(16, 35));
    localTimeSeries.add(new Day(1, 11, 2004), time(16, 33));
    localTimeSeries.add(new Day(2, 11, 2004), time(16, 31));
    localTimeSeries.add(new Day(3, 11, 2004), time(16, 30));
    localTimeSeries.add(new Day(4, 11, 2004), time(16, 28));
    localTimeSeries.add(new Day(5, 11, 2004), time(16, 26));
    localTimeSeries.add(new Day(6, 11, 2004), time(16, 24));
    localTimeSeries.add(new Day(7, 11, 2004), time(16, 23));
    localTimeSeries.add(new Day(8, 11, 2004), time(16, 21));
    localTimeSeries.add(new Day(9, 11, 2004), time(16, 20));
    localTimeSeries.add(new Day(10, 11, 2004), time(16, 18));
    localTimeSeries.add(new Day(11, 11, 2004), time(16, 16));
    localTimeSeries.add(new Day(12, 11, 2004), time(16, 15));
    localTimeSeries.add(new Day(13, 11, 2004), time(16, 13));
    localTimeSeries.add(new Day(14, 11, 2004), time(16, 12));
    localTimeSeries.add(new Day(15, 11, 2004), time(16, 11));
    localTimeSeries.add(new Day(16, 11, 2004), time(16, 9));
    localTimeSeries.add(new Day(17, 11, 2004), time(16, 8));
    localTimeSeries.add(new Day(18, 11, 2004), time(16, 7));
    localTimeSeries.add(new Day(19, 11, 2004), time(16, 5));
    localTimeSeries.add(new Day(20, 11, 2004), time(16, 4));
    localTimeSeries.add(new Day(21, 11, 2004), time(16, 3));
    localTimeSeries.add(new Day(22, 11, 2004), time(16, 2));
    localTimeSeries.add(new Day(23, 11, 2004), time(16, 1));
    localTimeSeries.add(new Day(24, 11, 2004), time(16, 0));
    localTimeSeries.add(new Day(25, 11, 2004), time(15, 59));
    localTimeSeries.add(new Day(26, 11, 2004), time(15, 58));
    localTimeSeries.add(new Day(27, 11, 2004), time(15, 57));
    localTimeSeries.add(new Day(28, 11, 2004), time(15, 56));
    localTimeSeries.add(new Day(29, 11, 2004), time(15, 56));
    localTimeSeries.add(new Day(30, 11, 2004), time(15, 55));
    localTimeSeries.add(new Day(1, 12, 2004), time(15, 54));
    localTimeSeries.add(new Day(2, 12, 2004), time(15, 54));
    localTimeSeries.add(new Day(3, 12, 2004), time(15, 53));
    localTimeSeries.add(new Day(4, 12, 2004), time(15, 53));
    localTimeSeries.add(new Day(5, 12, 2004), time(15, 52));
    localTimeSeries.add(new Day(6, 12, 2004), time(15, 52));
    localTimeSeries.add(new Day(7, 12, 2004), time(15, 51));
    localTimeSeries.add(new Day(8, 12, 2004), time(15, 51));
    localTimeSeries.add(new Day(9, 12, 2004), time(15, 51));
    localTimeSeries.add(new Day(10, 12, 2004), time(15, 51));
    localTimeSeries.add(new Day(11, 12, 2004), time(15, 50));
    localTimeSeries.add(new Day(12, 12, 2004), time(15, 50));
    localTimeSeries.add(new Day(13, 12, 2004), time(15, 50));
    localTimeSeries.add(new Day(14, 12, 2004), time(15, 50));
    localTimeSeries.add(new Day(15, 12, 2004), time(15, 51));
    localTimeSeries.add(new Day(16, 12, 2004), time(15, 51));
    localTimeSeries.add(new Day(17, 12, 2004), time(15, 51));
    localTimeSeries.add(new Day(18, 12, 2004), time(15, 51));
    localTimeSeries.add(new Day(19, 12, 2004), time(15, 51));
    localTimeSeries.add(new Day(20, 12, 2004), time(15, 52));
    localTimeSeries.add(new Day(21, 12, 2004), time(15, 52));
    localTimeSeries.add(new Day(22, 12, 2004), time(15, 53));
    localTimeSeries.add(new Day(23, 12, 2004), time(15, 53));
    localTimeSeries.add(new Day(24, 12, 2004), time(15, 54));
    localTimeSeries.add(new Day(25, 12, 2004), time(15, 55));
    localTimeSeries.add(new Day(26, 12, 2004), time(15, 55));
    localTimeSeries.add(new Day(27, 12, 2004), time(15, 56));
    localTimeSeries.add(new Day(28, 12, 2004), time(15, 57));
    localTimeSeries.add(new Day(29, 12, 2004), time(15, 58));
    localTimeSeries.add(new Day(30, 12, 2004), time(15, 59));
    localTimeSeries.add(new Day(31, 12, 2004), time(16, 0));
    return localTimeSeries;
  }

  private static JFreeChart createChart(XYDataset paramXYDataset)
  {
    JFreeChart localJFreeChart = ChartFactory.createTimeSeriesChart("Daylight Hours - London, UK", "Date", "Time", paramXYDataset, true, true, false);
    localJFreeChart.addSubtitle(new TextTitle("Data source: http://www.sunrisesunset.com/", new Font("SansSerif", 0, 12)));
    XYDifferenceRenderer localXYDifferenceRenderer = new XYDifferenceRenderer(Color.blue, Color.blue, false);
    localXYDifferenceRenderer.setRoundXCoordinates(true);
    localXYDifferenceRenderer.setBaseStroke(new BasicStroke(2.0F));
    localXYDifferenceRenderer.setSeriesPaint(0, Color.yellow);
    localXYDifferenceRenderer.setSeriesPaint(1, Color.red);
    localXYDifferenceRenderer.setBaseToolTipGenerator(new StandardXYToolTipGenerator("{0} : {1} = {2}", new SimpleDateFormat("d-MMM-yyyy"), new SimpleDateFormat("kk:mm")));
    XYPlot localXYPlot = (XYPlot)localJFreeChart.getPlot();
    localXYPlot.setRenderer(localXYDifferenceRenderer);
    localXYPlot.setDomainCrosshairVisible(true);
    localXYPlot.setRangeCrosshairVisible(true);
    DateAxis localDateAxis1 = new DateAxis("Time");
    localDateAxis1.setTickMarkPosition(DateTickMarkPosition.MIDDLE);
    localDateAxis1.setLowerMargin(0.0D);
    localDateAxis1.setUpperMargin(0.0D);
    localXYPlot.setDomainAxis(localDateAxis1);
    localXYPlot.setForegroundAlpha(0.5F);
    GradientPaint localGradientPaint = new GradientPaint(0.0F, 0.0F, Color.red, 1.0F, 1.0F, Color.orange);
    IntervalMarker localIntervalMarker = new IntervalMarker(new Day(28, 3, 2004).getFirstMillisecond(), new Day(30, 10, 2004).getFirstMillisecond(), localGradientPaint, new BasicStroke(2.0F), null, null, 1.0F);
    localIntervalMarker.setLabel("British Summer Time");
    localIntervalMarker.setLabelAnchor(RectangleAnchor.BOTTOM_RIGHT);
    localIntervalMarker.setLabelFont(new Font("SansSerif", 3, 10));
    localIntervalMarker.setLabelTextAnchor(TextAnchor.BASELINE_RIGHT);
    localIntervalMarker.setGradientPaintTransformer(new StandardGradientPaintTransformer(GradientPaintTransformType.HORIZONTAL));
    localXYPlot.addDomainMarker(localIntervalMarker, Layer.BACKGROUND);
    DateAxis localDateAxis2 = new DateAxis("Time");
    localDateAxis2.setLowerMargin(0.15D);
    localDateAxis2.setUpperMargin(0.15D);
    localXYPlot.setRangeAxis(localDateAxis2);
    ChartUtilities.applyCurrentTheme(localJFreeChart);
    return localJFreeChart;
  }

  public static JPanel createDemoPanel()
  {
    JFreeChart localJFreeChart = createChart(createDataset());
    return new ChartPanel(localJFreeChart);
  }

  public static void main(String[] paramArrayOfString)
  {
    DifferenceChartDemo2 localDifferenceChartDemo2 = new DifferenceChartDemo2("JFreeChart: DifferenceChartDemo2.java");
    localDifferenceChartDemo2.pack();
    RefineryUtilities.centerFrameOnScreen(localDifferenceChartDemo2);
    localDifferenceChartDemo2.setVisible(true);
  }
}